Copies the styles in the collection to a specified array at a specified location.
Syntax
Parameters
- array
- A one-dimensional array into which the elements from ICollection are copied
The array must have zero-based indexing. - index
- Zero-based index in array at which to paste styles
Example
This example copies the style to the specified index in an array.
C# | Copy Code |
---|
FarPoint.Win.Spread.DefaultStyleCollection dsc = new FarPoint.Win.Spread.DefaultStyleCollection();
FarPoint.Win.Spread.NamedStyle[] style = new FarPoint.Win.Spread.NamedStyle[dsc.Count];
dsc.CopyTo((Array)style,0); |
Visual Basic | Copy Code |
---|
Dim dsc As New FarPoint.Win.Spread.DefaultStyleCollection()
Dim style(dsc.Count()) As FarPoint.Win.Spread.NamedStyle
dsc.CopyTo(CType(style, Array), 0) |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also